import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

import App from '../App.vue'

// 网红 - 首页；
const internetCelebrity = () => import('@/pages/internetCelebrity/index')

const routes = [
  {
    path: '/',
    component: App,
    children:[
      {
        path: '/',  // 默认进入路由
        redirect: 'internetCelebrity'   //重定向'
      },
      {
        path: '/internetCelebrity',
        name: 'internetCelebrity',
        component: internetCelebrity,
      }
    ]
  }
]
export default new Router({
  mode: 'history',
  routes
})
